<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>标题</title>
    <link href="../static/css/bootstrap5.min.css" th:href="@{/css/bootstrap5.min.css}" rel="stylesheet"/>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="container">
        <a class="navbar-brand" href="/stock/getAverageHoldingPercentage">首页</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
                aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link" aria-current="page" href="/chat">AI问题解答</a>
                </li>
                <li class="nav-item" shiro:notAuthenticated>
                    <a class="nav-link" href="/login">登录</a>
                </li>
                <li class="nav-item" shiro:notAuthenticated>
                    <a class="nav-link" href="/register">注册</a>
                </li>
            </ul>
            <div id="userInfo" class="ms-auto" shiro:authenticated>
                <span class="nav-link" th:text="'欢迎，' + ${sysUser.userName}">用户昵称</span>
                <button class="nav-link btn btn-link" id="logoutButton">退出登录</button>
            </div>
        </div>

    </div>
</nav>

<script src="../../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap5.min.js}"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>

</script>
</body>
</html>
